package cn.analysis.project.controller;

import cn.analysis.common.ResultVO;
import cn.analysis.project.service.IAlarmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/** 告警 控制层 */
@RestController
@RequestMapping(value = "alarm")
public class AlarmController {

    @Autowired
    private IAlarmService alarmService;

    /** 获取系统中存在的告警信息 */
    @RequestMapping(value = "/selectListAllAlarm", method = RequestMethod.GET)
    public ResultVO selectListAllAlarm(String code){
        return ResultVO.success(alarmService.selectListAllAlarm(code));
    }
}
